package com.device.search.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.device.search.mapper.ConstructionDeviceMapper;
import com.device.search.model.Device;
import com.device.search.model.DeviceStatus;
import com.device.search.service.ConstructionDeviceService;

@Service
public class ConstructionDeviceServiceImpl implements ConstructionDeviceService {

	@Autowired
	private ConstructionDeviceMapper constructionDeviceMapper;

	@Override
	public List<Device> findByProjectNameAndDeviceNo(String projectname, String deviceNo) {
		// TODO Auto-generated method stub
		return constructionDeviceMapper.findByProjectNameAndDeviceNo(projectname, deviceNo);
	}

	@Override
	public List<DeviceStatus> findDeviceStatus(String projectName, String deviceNo) {
		// TODO Auto-generated method stub
		return constructionDeviceMapper.findDeviceStatus(projectName, deviceNo);
	}

}
